<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model backend\models\AdminUser */

$this->title = '审核开关';
$this->params['breadcrumbs'][] = ['label' => '审核开关', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="box box-info">
    <!-- form start -->

    <div class="box-body">
        
        <?php $form = ActiveForm::begin([
            'options'=>['class'=>'form-horizontal'],
            'fieldConfig'=>[
                'template'=>"{label}\n<div class=\"col-sm-10\">{input}\n{hint}\n{error}</div>",
                'labelOptions'=>['class'=>'col-sm-2 control-label'],
            ],
        ]); ?>
        
        <?= $form->field($model, 'shenqing')->dropDownList(['1' => '开', '0' => '关']) ?>
        <?= $form->field($model, 'butie')->dropDownList(['1' => '开', '0' => '关']) ?>
        <?= $form->field($model, 'tuikuan')->dropDownList(['1' => '开', '0' => '关']) ?>

        <div class="box-footer">
            <a href="javascript:history.back();" class="btn btn-default">取消</a>
            <?= Html::submitButton($model->isNewRecord ? '创建' : '更新', ['class' => $model->isNewRecord ? 'btn btn-success pull-right' : 'btn btn-primary pull-right']) ?>
        </div>
        
        <?php ActiveForm::end(); ?>

    </div>
</div>
